// CustomerManagement.java

package Customers;

import java.util.ArrayList;
import java.util.List;

public class CustomerManagement {

    private String firstName;
    private String lastName;
    private String age;
    
    private List<List<String>> customers = new ArrayList<List<String>>();
    
    public List<List<String>> getCustomers(){
        return customers;
    }

// jeśli nazwa klienta jest pusta, zgłoś wyjątek; w przeciwnym razie dodaj klienta 
    public void addCustomers(List<String> customerDetails){
        if (customerDetails.get(0).isEmpty())
            throw new IllegalArgumentException();
        customers.add(customerDetails);
    }
}
